package com.gzdh.tang.modu.model;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class OuterExtendsVo {
    private List<Detail> detail;
    private String title;
    private String color;

    @Data
    public static class Detail {
        private String name;
        private String value;

        public Detail(String name, String value) {
            this.name = name;
            this.value = value;
        }
    }

    public OuterExtendsVo(String name, String value, String title, String color) {
        List<Detail> details = new ArrayList<>();
        details.add(new Detail(name, value));
        this.detail = details;
        this.title = title;
        this.color = color;
    }
}
